package club.justwill.single.bean;

import club.justwill.single.persistence.jpo.User;

import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by luoyu on 15-12-27.
 */
public class UserResp {
    private String userId;
    private String nickName;
    private String sex;
    private String head_icon;
    private String birthday;
    private String balance;
    private String type;
    private String creationTime;
    private String status;
    private String address;
    private String invitationCode;

    public UserResp(){}

    public UserResp(User user){
        this.userId = user.getUserId()+"";
        this.nickName = user.getNickName()+"";
        this.sex = user.getSex()+"";
        this.head_icon = user.getHeadIcon()+"";
        this.birthday = user.getBirthday()+"";
        this.balance = user.getBalance()+"";
        this.type = user.getType()+"";
        this.creationTime = user.getCreationTime()+"";
        this.status = user.getStatus()+"";
        this.address = user.getAddress()+"";
        this.invitationCode = user.getInvitationCode()+"";
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHead_icon() {
        return head_icon;
    }

    public void setHead_icon(String head_icon) {
        this.head_icon = head_icon;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }
}
